public class Test_3_23 {//写关于Stringtable博客内容的代码
    public static void main3(String[] args) {
        char[] ch={'a','b','c'};
        String s1=new String(ch);
        s1.intern();
        String s2="abc";
        System.out.println(s1==s2);
    }
    public static void main2(String[] args) {
        String s1=new String("abc");
        String s2=new String("abc");
        System.out.println(s1==s2);
    }
    public static void main(String[] args) {
        String s1="abc";
        String s2="abc";
        System.out.println(s1==s2);
    }
}
